package com.woniu.controller;

import com.woniu.entity.PageData;
import com.woniu.entity.Result;
import com.woniu.entity.dto.PaymentstatisticsDTO;
import com.woniu.entity.dto.SectionStatisticsDTO;
import com.woniu.service.OrderService;
import com.woniu.service.PaymentStatisticsService;
import com.woniu.utils.BaseController;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.web.bind.annotation.*;

import java.util.Date;
@Api(tags = "根据日期")
@RestController
@RequestMapping("/paymentstatistics")
public class PaymentStatisticsController extends BaseController {
    @Autowired(required = false)
    private PaymentStatisticsService paymentStatisticsService;
    @Autowired
    private StringRedisTemplate stringRedisTemplate;
//    @ApiOperation("根据日期查询+分页")
//    @PostMapping("/getByDate/{currentPage}/{pageSize}")
//    public Result getByDate(
//            @PathVariable Integer currentPage,
//            @PathVariable Integer pageSize,
//            @RequestBody PaymentstatisticsDTO paymentstatisticsDTO){
//        PageData pageData = paymentStatisticsService.getByDate(currentPage,pageSize,paymentstatisticsDTO);
//        return new Result(200,"查询分页搜索成功",pageData);
//    }
}
